home *** CD-ROM | disk | FTP | other *** search
- #include <stddef.h>
- #include <dos.h>
- #include "getdpb.h"
- DPB_DATA far *getdpb( void )
- { DPB_DATA far *dptr;
- int dsseg, bxoff;
- asm push ds ;
- asm push dx ;
- asm mov ah,1fh ;
- asm int 21h ;
- asm mov dsseg,ds ;
- asm mov bxoff,bx ;
- asm pop dx ;
- asm pop ds ;
- dptr = (DPB_DATA *) MK_FP(dsseg, bxoff);
- return dptr;
- }
-
-